package com.danielkim.soundrecorder;

import android.app.Application;
import android.os.Environment;
import android.os.StrictMode;

import java.io.File;

public class App extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        initStrictMode();
    }

    private void initStrictMode() {
//        File[] files = getExternalMediaDirs(); // test
        StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
        StrictMode.setVmPolicy(builder.build());
        builder.detectFileUriExposure();
    }

}
